<?php
/**
 * Class 首页.
 * User: chan
 * Date: 2017/10/20 11:22
 */

namespace app\api\controller;
class Image extends Base
{
    //检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'except' => 'except'
        ],
    ];

    /**
    *   首页
    */
    public function upload(){
        $upload =  (new \app\api\logic\Image())->upload();
        return $this->ajaxReturn($upload);
    }

    /**
    *   base64上传
    */
    public function uploadBase64(){
        $uploadBase64 =  (new \app\api\logic\Image())->uploadBase64();
        return $this->ajaxReturn($uploadBase64);
    }

    public function upload_imgs(){
        $upload =  (new \app\api\logic\Image())->upload_imgs();
        return $this->ajaxReturn($upload);
    }
}